package com.atguyigu.codesday01.dom02;

import com.atguyigu.codesday01.dom01.Ticket;

public class NewTicketDemo {

    public static void main(String[] args) {
        Ticket ticket=new Ticket();

        new Thread(()-> { for (int i = 0; i <51 ; i++) ticket.sale();},"A").start();
        new  Thread(()->{ for (int i = 0; i <51 ; i++) ticket.sale(); },"B").start();
        new Thread(()->{ for (int i = 0; i <51 ; i++) ticket.sale(); },"C").start();
    }
}
